<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登陆</title>
    <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<body>
    <h1>登陆</h1>
    <h4 id="per" data-test="test"></h4>
    <script>
        $(function() {
            //bootAjax();
        });

        function bootAjax() {
            $.ajax({
                url: "../../do/login/index",
                dataType: "json",
                type: "post",
                data: {
                  username: "admin",
                  password: "admin"
                },
                success: function(result) {
                    alert(result);
                }
            });
        }
    </script>
</body>
</html>